package com.liuwei.msmall.seckill.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname MyRabbitMqConfig
 * @Description TODO
 * @Date 2020/7/1 21:00
 * @Created by 刘
 */
@Configuration
public class MyRabbitMqConfig {



    //配置成使用序列化为json的序列化机制
    @Bean
    public MessageConverter getMessageConverter(){
        return new Jackson2JsonMessageConverter();
    }


}
